package com.tcfvic.client.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="logs"
    
, uniqueConstraints = {  }
)

public class Logs  implements java.io.Serializable {
	private int id;
	private Date dateandtime;
	private String text;
	
	public Logs() {
		
	}

	public Logs(Date dateandtime, String text) {
		this.dateandtime = dateandtime;
		this.text = text;
	}

	
	
    @Id
    @Column(name="id", unique=true, nullable=false, insertable=true, updatable=true)
@GeneratedValue(strategy=GenerationType.AUTO)
    public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	// Property accessors
    @Column(name="dateandtime", unique=true, nullable=false, insertable=true, updatable=true)
	public Date getDateandtime() {
		return dateandtime;
	}

	public void setDateandtime(Date dateandtime) {
		this.dateandtime = dateandtime;
	}

	
    @Column(name="text", unique=false, nullable=true, insertable=true, updatable=true, length=4500)
	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	

}
